package com.hbk.controller;

import com.hbk.base.common.CommonResult;
import com.hbk.param.FriendLinkParam;
import com.hbk.service.IFriendLinkService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/friendLink")
public class FriendLinkController {

    @Resource
    private IFriendLinkService friendLinkService;

    @RequestMapping("/add")
    public CommonResult add(FriendLinkParam.AddParam param){
        return friendLinkService.add(param);
    }

    @RequestMapping("/modify")
    public CommonResult modify(FriendLinkParam.ModifyParam param){
        return friendLinkService.modify(param);
    }

    @RequestMapping("/delete")
    public CommonResult delete(FriendLinkParam.DeleteParam param){
        return friendLinkService.delete(param);
    }

    @RequestMapping("/listAll")
    public CommonResult listAll(){
        return friendLinkService.listAll();
    }
}
